package vip.xiaonuo.facedoor.modular.memberdevice.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import lombok.experimental.Accessors;
import vip.xiaonuo.core.pojo.base.param.BaseParam;

import javax.validation.constraints.NotBlank;

@Data
@Accessors(chain = true)
public class MemberDeviceVO {

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空，请检查name参数", groups = {BaseParam.add.class, BaseParam.edit.class})
    @Excel(name = "姓名")
    private String name;

    /**
     * 工号
     */
    @NotBlank(message = "工号不能为空，请检查jobNum参数", groups = {BaseParam.add.class, BaseParam.edit.class})
    @Excel(name = "人员工号")
    private String jobNum;

    private Long memberUserId;
    private String orgName;
    @Excel(name = "设备名称")
    private String deviceName;
    private Long memberDeviceId;
    @Excel(name = "设备序列号")
    private String registerCode;
    private Integer memberStatus;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空，请检查tel参数", groups = {BaseParam.add.class, BaseParam.edit.class})
    private String tel;


    /**
     * 人脸比对照片
     */
    @NotBlank(message = "人脸比对照片不能为空，请检查photo参数", groups = {BaseParam.add.class, BaseParam.edit.class})
    private String photo;




    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空，请检查idCard参数", groups = {BaseParam.add.class, BaseParam.edit.class})
    private String idCard;

    /**
     * IC卡号
     */
    @NotBlank(message = "IC卡号不能为空，请检查icCard参数", groups = {BaseParam.add.class, BaseParam.edit.class})
    private String icCard;

    /**
     * 人脸特征值
     */
    private String properValue;

    @Excel(name = "是否是管理员")
    private Boolean lockerAdmin;

    @Excel(name = "*格子编号")
    private String lockerData;

}
